package com.chhuang.huaao.po;

import java.io.Serializable;
import java.util.Date;
import com.chhuang.core.model.AbstractPersistentModel;
import com.chhuang.core.validation.ValidGroupSave;
import com.chhuang.core.validation.ValidGroupUpdate;
import com.sun.xml.bind.CycleRecoverable;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import com.alibaba.fastjson.annotation.JSONField;

/**
* HaMachine Model
* @author ChHuang
* @date Thu May 18 14:35:49 CST 2017
*/
public class HaMachine extends AbstractPersistentModel implements CycleRecoverable{
	private static final long serialVersionUID = 5647464448958744731L;
	@NotNull(message="{HaMachine.machineId.NotNull}",groups={ValidGroupUpdate.class})
	@Size(max=32,message="{HaMachine.machineId.Size}",groups={ValidGroupSave.class})
	private String machineId;
	public String getMachineId(){
		return machineId;
	}
	public void setMachineId(String machineId){
		this.machineId=machineId;
	}
	@NotNull(message="{HaMachine.machineNum.NotNull}",groups={ValidGroupUpdate.class,ValidGroupSave.class})
	@Size(max=255,message="{HaMachine.machineNum.Size}",groups={ValidGroupSave.class})
	private String machineNum;
	public String getMachineNum(){
		return machineNum;
	}
	public void setMachineNum(String machineNum){
		this.machineNum=machineNum;
	}
	@Size(max=255,message="{HaMachine.machineAname.Size}",groups={ValidGroupSave.class})
	private String machineAname;
	public String getMachineAname(){
		return machineAname;
	}
	public void setMachineAname(String machineAname){
		this.machineAname=machineAname;
	}
	@Size(max=255,message="{HaMachine.machineCname.Size}",groups={ValidGroupSave.class})
	private String machineCname;
	public String getMachineCname(){
		return machineCname;
	}
	public void setMachineCname(String machineCname){
		this.machineCname=machineCname;
	}
	private Integer machineOnlineStatus;
	public Integer getMachineOnlineStatus(){
		return machineOnlineStatus;
	}
	public void setMachineOnlineStatus(Integer machineOnlineStatus){
		this.machineOnlineStatus=machineOnlineStatus;
	}
	private Integer machineRunStatus;
	public Integer getMachineRunStatus(){
		return machineRunStatus;
	}
	public void setMachineRunStatus(Integer machineRunStatus){
		this.machineRunStatus=machineRunStatus;
	}
	private Integer machineRuningStatus;
	public Integer getMachineRuningStatus(){
		return machineRuningStatus;
	}
	public void setMachineRuningStatus(Integer machineRuningStatus){
		this.machineRuningStatus=machineRuningStatus;
	}
	private Integer machineBinStatus;
	public Integer getMachineBinStatus(){
		return machineBinStatus;
	}
	public void setMachineBinStatus(Integer machineBinStatus){
		this.machineBinStatus=machineBinStatus;
	}
	private Integer machineStoveStatus;
	public Integer getMachineStoveStatus(){
		return machineStoveStatus;
	}
	public void setMachineStoveStatus(Integer machineStoveStatus){
		this.machineStoveStatus=machineStoveStatus;
	}
	private Integer machineBlowerStatus;
	public Integer getMachineBlowerStatus(){
		return machineBlowerStatus;
	}
	public void setMachineBlowerStatus(Integer machineBlowerStatus){
		this.machineBlowerStatus=machineBlowerStatus;
	}
	private Integer machineWindStatus;
	public Integer getMachineWindStatus(){
		return machineWindStatus;
	}
	public void setMachineWindStatus(Integer machineWindStatus){
		this.machineWindStatus=machineWindStatus;
	}
	private Integer machinePumpStatus;
	public Integer getMachinePumpStatus(){
		return machinePumpStatus;
	}
	public void setMachinePumpStatus(Integer machinePumpStatus){
		this.machinePumpStatus=machinePumpStatus;
	}
	private Integer machineFireStatus;
	public Integer getMachineFireStatus(){
		return machineFireStatus;
	}
	public void setMachineFireStatus(Integer machineFireStatus){
		this.machineFireStatus=machineFireStatus;
	}
	private Double machineWaterTemp;
	public Double getMachineWaterTemp(){
		return machineWaterTemp;
	}
	public void setMachineWaterTemp(Double machineWaterTemp){
		this.machineWaterTemp=machineWaterTemp;
	}
	private Double machineSmokeTemp;
	public Double getMachineSmokeTemp(){
		return machineSmokeTemp;
	}
	public void setMachineSmokeTemp(Double machineSmokeTemp){
		this.machineSmokeTemp=machineSmokeTemp;
	}
	private Double machineInletWaterTemp;
	public Double getMachineInletWaterTemp(){
		return machineInletWaterTemp;
	}
	public void setMachineInletWaterTemp(Double machineInletWaterTemp){
		this.machineInletWaterTemp=machineInletWaterTemp;
	}
	private Boolean machineHightTempWarn;
	public Boolean getMachineHightTempWarn(){
		return machineHightTempWarn;
	}
	public void setMachineHightTempWarn(Boolean machineHightTempWarn){
		this.machineHightTempWarn=machineHightTempWarn;
	}
	private Boolean machineLessWaterWarn;
	public Boolean getMachineLessWaterWarn(){
		return machineLessWaterWarn;
	}
	public void setMachineLessWaterWarn(Boolean machineLessWaterWarn){
		this.machineLessWaterWarn=machineLessWaterWarn;
	}
	private Boolean machineLessFuelWarn;
	public Boolean getMachineLessFuelWarn(){
		return machineLessFuelWarn;
	}
	public void setMachineLessFuelWarn(Boolean machineLessFuelWarn){
		this.machineLessFuelWarn=machineLessFuelWarn;
	}
	private Integer machineBinStall;
	public Integer getMachineBinStall(){
		return machineBinStall;
	}
	public void setMachineBinStall(Integer machineBinStall){
		this.machineBinStall=machineBinStall;
	}
	private Integer machineTurnOffFireTemp;
	public Integer getMachineTurnOffFireTemp(){
		return machineTurnOffFireTemp;
	}
	public void setMachineTurnOffFireTemp(Integer machineTurnOffFireTemp){
		this.machineTurnOffFireTemp=machineTurnOffFireTemp;
	}
	private Integer machineTurnOnFireTemp;
	public Integer getMachineTurnOnFireTemp(){
		return machineTurnOnFireTemp;
	}
	public void setMachineTurnOnFireTemp(Integer machineTurnOnFireTemp){
		this.machineTurnOnFireTemp=machineTurnOnFireTemp;
	}
	private Integer machineTurnSmokeTemp;
	public Integer getMachineTurnSmokeTemp(){
		return machineTurnSmokeTemp;
	}
	public void setMachineTurnSmokeTemp(Integer machineTurnSmokeTemp){
		this.machineTurnSmokeTemp=machineTurnSmokeTemp;
	}
	private Integer machineTurnOnPumpTemp;
	public Integer getMachineTurnOnPumpTemp(){
		return machineTurnOnPumpTemp;
	}
	public void setMachineTurnOnPumpTemp(Integer machineTurnOnPumpTemp){
		this.machineTurnOnPumpTemp=machineTurnOnPumpTemp;
	}
	private Integer machineTurnOffPumpTemp;
	public Integer getMachineTurnOffPumpTemp(){
		return machineTurnOffPumpTemp;
	}
	public void setMachineTurnOffPumpTemp(Integer machineTurnOffPumpTemp){
		this.machineTurnOffPumpTemp=machineTurnOffPumpTemp;
	}
	private Integer machineTurnOnTimeout;
	public Integer getMachineTurnOnTimeout(){
		return machineTurnOnTimeout;
	}
	public void setMachineTurnOnTimeout(Integer machineTurnOnTimeout){
		this.machineTurnOnTimeout=machineTurnOnTimeout;
	}
	private Integer machineTurnOnPreFeedTimeout;
	public Integer getMachineTurnOnPreFeedTimeout(){
		return machineTurnOnPreFeedTimeout;
	}
	public void setMachineTurnOnPreFeedTimeout(Integer machineTurnOnPreFeedTimeout){
		this.machineTurnOnPreFeedTimeout=machineTurnOnPreFeedTimeout;
	}
	private Integer machineTurnOffBlowerTimeout;
	public Integer getMachineTurnOffBlowerTimeout(){
		return machineTurnOffBlowerTimeout;
	}
	public void setMachineTurnOffBlowerTimeout(Integer machineTurnOffBlowerTimeout){
		this.machineTurnOffBlowerTimeout=machineTurnOffBlowerTimeout;
	}
	private Integer machineTurnOffWindTimeout;
	public Integer getMachineTurnOffWindTimeout(){
		return machineTurnOffWindTimeout;
	}
	public void setMachineTurnOffWindTimeout(Integer machineTurnOffWindTimeout){
		this.machineTurnOffWindTimeout=machineTurnOffWindTimeout;
	}
	@Size(max=255,message="{HaMachine.machineWorkTimeInterval1.Size}",groups={ValidGroupSave.class})
	private String machineWorkTimeInterval1;
	public String getMachineWorkTimeInterval1(){
		return machineWorkTimeInterval1;
	}
	public void setMachineWorkTimeInterval1(String machineWorkTimeInterval1){
		this.machineWorkTimeInterval1=machineWorkTimeInterval1;
	}
	@Size(max=255,message="{HaMachine.machineWorkTimeInterval2.Size}",groups={ValidGroupSave.class})
	private String machineWorkTimeInterval2;
	public String getMachineWorkTimeInterval2(){
		return machineWorkTimeInterval2;
	}
	public void setMachineWorkTimeInterval2(String machineWorkTimeInterval2){
		this.machineWorkTimeInterval2=machineWorkTimeInterval2;
	}
	@Size(max=255,message="{HaMachine.machineWorkTimeInterval3.Size}",groups={ValidGroupSave.class})
	private String machineWorkTimeInterval3;
	public String getMachineWorkTimeInterval3(){
		return machineWorkTimeInterval3;
	}
	public void setMachineWorkTimeInterval3(String machineWorkTimeInterval3){
		this.machineWorkTimeInterval3=machineWorkTimeInterval3;
	}
	@Size(max=255,message="{HaMachine.machineWorkTimeInterval4.Size}",groups={ValidGroupSave.class})
	private String machineWorkTimeInterval4;
	public String getMachineWorkTimeInterval4(){
		return machineWorkTimeInterval4;
	}
	public void setMachineWorkTimeInterval4(String machineWorkTimeInterval4){
		this.machineWorkTimeInterval4=machineWorkTimeInterval4;
	}
	@Size(max=255,message="{HaMachine.machineWorkTimeInterval5.Size}",groups={ValidGroupSave.class})
	private String machineWorkTimeInterval5;
	public String getMachineWorkTimeInterval5(){
		return machineWorkTimeInterval5;
	}
	public void setMachineWorkTimeInterval5(String machineWorkTimeInterval5){
		this.machineWorkTimeInterval5=machineWorkTimeInterval5;
	}
	@Size(max=255,message="{HaMachine.machineWorkTimeInterval6.Size}",groups={ValidGroupSave.class})
	private String machineWorkTimeInterval6;
	public String getMachineWorkTimeInterval6(){
		return machineWorkTimeInterval6;
	}
	public void setMachineWorkTimeInterval6(String machineWorkTimeInterval6){
		this.machineWorkTimeInterval6=machineWorkTimeInterval6;
	}
	@Size(max=255,message="{HaMachine.machineWorkTimeInterval7.Size}",groups={ValidGroupSave.class})
	private String machineWorkTimeInterval7;
	public String getMachineWorkTimeInterval7(){
		return machineWorkTimeInterval7;
	}
	public void setMachineWorkTimeInterval7(String machineWorkTimeInterval7){
		this.machineWorkTimeInterval7=machineWorkTimeInterval7;
	}
	@Size(max=255,message="{HaMachine.machineWorkTimeInterval8.Size}",groups={ValidGroupSave.class})
	private String machineWorkTimeInterval8;
	public String getMachineWorkTimeInterval8(){
		return machineWorkTimeInterval8;
	}
	public void setMachineWorkTimeInterval8(String machineWorkTimeInterval8){
		this.machineWorkTimeInterval8=machineWorkTimeInterval8;
	}
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JSONField(format="yyyy-MM-dd")
	private Date machineAdminDeadline;
	public Date getMachineAdminDeadline(){
		return machineAdminDeadline;
	}
	public void setMachineAdminDeadline(Date machineAdminDeadline){
		this.machineAdminDeadline=machineAdminDeadline;
	}
	@Size(max=255,message="{HaMachine.machineAddress.Size}",groups={ValidGroupSave.class})
	private String machineAddress;
	public String getMachineAddress(){
		return machineAddress;
	}
	public void setMachineAddress(String machineAddress){
		this.machineAddress=machineAddress;
	}
	@Size(max=32,message="{HaMachine.customerId.Size}",groups={ValidGroupSave.class})
	private String customerId;
	public String getCustomerId(){
		return customerId;
	}
	public void setCustomerId(String customerId){
		this.customerId=customerId;
	}
	@Size(max=32,message="{HaMachine.customerId1.Size}",groups={ValidGroupSave.class})
	private String customerId1;
	public String getCustomerId1(){
		return customerId1;
	}
	public void setCustomerId1(String customerId1){
		this.customerId1=customerId1;
	}
	@Size(max=32,message="{HaMachine.customerId2.Size}",groups={ValidGroupSave.class})
	private String customerId2;
	public String getCustomerId2(){
		return customerId2;
	}
	public void setCustomerId2(String customerId2){
		this.customerId2=customerId2;
	}
	@Size(max=32,message="{HaMachine.customerId3.Size}",groups={ValidGroupSave.class})
	private String customerId3;
	public String getCustomerId3(){
		return customerId3;
	}
	public void setCustomerId3(String customerId3){
		this.customerId3=customerId3;
	}
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	public Date getCreateTime(){
		return createTime;
	}
	public void setCreateTime(Date createTime){
		this.createTime=createTime;
	}
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date modifyTime;
	public Date getModifyTime(){
		return modifyTime;
	}
	public void setModifyTime(Date modifyTime){
		this.modifyTime=modifyTime;
	}
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date heartTime;
	public Date getHeartTime(){
		return heartTime;
	}
	public void setHeartTime(Date heartTime){
		this.heartTime=heartTime;
	}
	@Override
	public Serializable getId() {
		return getMachineId();
	}
	@Override
	public void setId(Serializable id) {
		setMachineId((String)id);
	}
	@Override
	public Object onCycleDetected(Context arg0) {
		HaMachine temp=new HaMachine();
		temp.setMachineId(machineId);
		return temp;
	}
	@Override
	public String toString() {
		return "HaMachine [machineId="+machineId+",machineNum="+machineNum+",machineAname="+machineAname+",machineCname="+machineCname+",machineOnlineStatus="+machineOnlineStatus+",machineRunStatus="+machineRunStatus+",machineRuningStatus="+machineRuningStatus+",machineBinStatus="+machineBinStatus+",machineStoveStatus="+machineStoveStatus+",machineBlowerStatus="+machineBlowerStatus+",machineWindStatus="+machineWindStatus+",machinePumpStatus="+machinePumpStatus+",machineFireStatus="+machineFireStatus+",machineWaterTemp="+machineWaterTemp+",machineSmokeTemp="+machineSmokeTemp+",machineInletWaterTemp="+machineInletWaterTemp+",machineHightTempWarn="+machineHightTempWarn+",machineLessWaterWarn="+machineLessWaterWarn+",machineLessFuelWarn="+machineLessFuelWarn+",machineBinStall="+machineBinStall+",machineTurnOffFireTemp="+machineTurnOffFireTemp+",machineTurnOnFireTemp="+machineTurnOnFireTemp+",machineTurnSmokeTemp="+machineTurnSmokeTemp+",machineTurnOnPumpTemp="+machineTurnOnPumpTemp+",machineTurnOffPumpTemp="+machineTurnOffPumpTemp+",machineTurnOnTimeout="+machineTurnOnTimeout+",machineTurnOnPreFeedTimeout="+machineTurnOnPreFeedTimeout+",machineTurnOffBlowerTimeout="+machineTurnOffBlowerTimeout+",machineTurnOffWindTimeout="+machineTurnOffWindTimeout+",machineWorkTimeInterval1="+machineWorkTimeInterval1+",machineWorkTimeInterval2="+machineWorkTimeInterval2+",machineWorkTimeInterval3="+machineWorkTimeInterval3+",machineWorkTimeInterval4="+machineWorkTimeInterval4+",machineWorkTimeInterval5="+machineWorkTimeInterval5+",machineWorkTimeInterval6="+machineWorkTimeInterval6+",machineWorkTimeInterval7="+machineWorkTimeInterval7+",machineWorkTimeInterval8="+machineWorkTimeInterval8+",machineAdminDeadline="+machineAdminDeadline+",machineAddress="+machineAddress+",customerId="+customerId+",customerId1="+customerId1+",customerId2="+customerId2+",customerId3="+customerId3+",createTime="+createTime+",modifyTime="+modifyTime+",heartTime="+heartTime+"]";
	}
}